<?php
if (!defined ('TYPO3_MODE')) {
	die ('Access denied.');
}

$TCA['tx_ifpcurriculum2_domain_model_dozent'] = array(
	'ctrl' => $TCA['tx_ifpcurriculum2_domain_model_dozent']['ctrl'],
	'interface' => array(
		'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, titel, geschlecht, vorname, nachname, beschreibung_kurz, beschreibung,veroeffentlichungen, type, bild, mail, stadt,extern',
	),
	'types' => array(
		'1' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, titel, geschlecht, vorname, nachname, beschreibung_kurz, beschreibung,veroeffentlichungen, type, bild, mail,stadt, extern,--div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access,starttime, endtime'),
	),
	'palettes' => array(
		'1' => array('showitem' => ''),
	),
	'columns' => array(
		'sys_language_uid' => array(
			'exclude' => 1,
			'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language',
			'config' => array(
				'type' => 'select',
				'foreign_table' => 'sys_language',
				'foreign_table_where' => 'ORDER BY sys_language.title',
				'items' => array(
					array('LLL:EXT:lang/locallang_general.php:LGL.allLanguages', -1),
					array('LLL:EXT:lang/locallang_general.php:LGL.default_value', 0)
				),
			),
		),
		'l10n_parent' => array(
			'displayCond' => 'FIELD:sys_language_uid:>:0',
			'exclude' => 1,
			'label' => 'LLL:EXT:lang/locallang_general.php:LGL.l18n_parent',
			'config' => array(
				'type' => 'select',
				'items' => array(
					array('', 0),
				),
				'foreign_table' => 'tx_ifpcurriculum2_domain_model_dozent',
				'foreign_table_where' => 'AND tx_ifpcurriculum2_domain_model_dozent.pid=###CURRENT_PID### AND tx_ifpcurriculum2_domain_model_dozent.sys_language_uid IN (-1,0)',
			),
		),
		'l10n_diffsource' => array(
			'config' =>array(
				'type' =>'passthrough',
			),
		),
		't3ver_label' => array(
			'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.versionLabel',
			'config' => array(
			'type' => 'input',
			'size' => '30',
			'max' => '255',
			)
		),
		'hidden' => array(
			'exclude' => 1,
			'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
			'config' => array(
				'type' => 'check',
			),
		),
		'starttime' => array(
			'exclude' => 1,
			'l10n_mode' => 'mergeIfNotBlank',
			'label' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime',
			'config' => array(
				'type' => 'input',
				'size' => '10',
				'max' => '20',
				'eval' => 'datetime',
				'checkbox' => '0',
				'default' => '0',
			),
		),
		'endtime' => array(
			'exclude' => 1,
			'l10n_mode' => 'mergeIfNotBlank',
			'label' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime',
			'config' => array(
				'type' => 'input',
				'size' => '8',
				'max' => '20',
				'eval' => 'datetime',
				'checkbox' => '0',
				'default' => '0',
				'range' => array(
					'upper' => mktime(0, 0, 0, 12, 31, date('Y') + 10),
					'lower' => mktime(0, 0, 0, date('m')-1, date('d'), date('Y'))
				),
			),
		),
		'titel' => array(
			'exclude' => 0,
			'label' => 'LLL:EXT:ifp_curriculum2/Resources/Private/Language/locallang_db.xml:tx_ifpcurriculum2_domain_model_dozent.titel',
			'config' => array(
				'type' => 'input',
				'size' => 30,
				'eval' => 'trim'
			),
		),
		'geschlecht' => array(
			'exclude' => 0,
			'label' => 'LLL:EXT:ifp_curriculum2/Resources/Private/Language/locallang_db.xml:tx_ifpcurriculum2_domain_model_dozent.geschlecht',
			'config' => array(
				'type' => 'select',
				'items' => array(
					array('m', 0),
					array('w', 1),
				),
				'size' => 1,
				'maxitems' => 1,
				'eval' => 'required'
			),
		),
		'vorname' => array(
			'exclude' => 0,
			'label' => 'LLL:EXT:ifp_curriculum2/Resources/Private/Language/locallang_db.xml:tx_ifpcurriculum2_domain_model_dozent.vorname',
			'config' => array(
				'type' => 'input',
				'size' => 30,
				'eval' => 'trim,required'
			),
		),
		'nachname' => array(
			'exclude' => 0,
			'label' => 'LLL:EXT:ifp_curriculum2/Resources/Private/Language/locallang_db.xml:tx_ifpcurriculum2_domain_model_dozent.nachname',
			'config' => array(
				'type' => 'input',
				'size' => 30,
				'eval' => 'trim,required'
			),
		),
		'beschreibung_kurz' => array(
			'exclude' => 0,
			'label' => 'LLL:EXT:ifp_curriculum2/Resources/Private/Language/locallang_db.xml:tx_ifpcurriculum2_domain_model_dozent.beschreibung_kurz',
			'config' => array(
				'type' => 'text',
				'cols' => 40,
				'rows' => 15,
				'eval' => 'trim'
			),
		),
		'beschreibung' => array(
			'exclude' => 0,
			'label' => 'LLL:EXT:ifp_curriculum2/Resources/Private/Language/locallang_db.xml:tx_ifpcurriculum2_domain_model_dozent.beschreibung',
			'config' => array(
				'type' => 'text',
				'cols' => 40,
				'rows' => 15,
				'eval' => 'trim'
			),
		),
		'veroeffentlichungen' => array(
			'exclude' => 0,
			'label' => 'Veröffentlichungen',
			'config' => array(
				'type' => 'text',
				'cols' => 40,
				'rows' => 15,
				'eval' => 'trim'
			),
		),
		'type' => array(
			'exclude' => 0,
			'label' => 'LLL:EXT:ifp_curriculum2/Resources/Private/Language/locallang_db.xml:tx_ifpcurriculum2_domain_model_dozent.type',
			'config' => array(
				'type' => 'select',
				'items' => array(
					array('D', '0'),
					array('S', '1'),
					array('SE', '2'),
				),
				'size' => 3,
				'maxitems' => 3,
				'eval' => ''
			),
		),
'fachbereich' => array(
			'exclude' => 0,
			'label' => 'LLL:EXT:ifp_curriculum2/Resources/Private/Language/locallang_db.xml:tx_ifpcurriculum2_domain_model_dozent.fachbereich',
			'config' => array(
				'type' => 'select',
				'items' => array(
array('TP', '0'),
array('AP', '1'),
array('ÄWB', '2'),
array('KPT', '3'),
array('GrTH', '4'),
),
				'size' => 3,
				'maxitems' => 3,
				'eval' => ''
),
),
		'bild' => array(
			'exclude' => 0,
			'label' => 'LLL:EXT:ifp_curriculum2/Resources/Private/Language/locallang_db.xml:tx_ifpcurriculum2_domain_model_dozent.bild',
			'config' => array(
				'type' => 'group',
				'internal_type' => 'file',
				'uploadfolder' => 'uploads/tx_ifpcurriculum2',
				'show_thumbs' => 1,
				'size' => 5,
				'allowed' => 'gif,jpg,jpeg,tif,tiff,bmp,pcx,tga,png,pdf,ai',
				'disallowed' => '',
			),
		),
		'mail' => array(
			'exclude' => 0,
			'label' => 'LLL:EXT:ifp_curriculum2/Resources/Private/Language/locallang_db.xml:tx_ifpcurriculum2_domain_model_dozent.mail',
			'config' => array(
				'type' => 'input',
				'size' => 30,
				'eval' => 'trim'
			),
		),
'homepage' => array(
			'exclude' => 0,
			'label' => 'LLL:EXT:ifp_curriculum2/Resources/Private/Language/locallang_db.xml:tx_ifpcurriculum2_domain_model_dozent.homepage',
			'config' => array(
				'type' => 'input',
				'size' => 30,
				'eval' => 'trim'
),
),
'telefon' => array(
			'exclude' => 0,
			'label' => 'LLL:EXT:ifp_curriculum2/Resources/Private/Language/locallang_db.xml:tx_ifpcurriculum2_domain_model_dozent.telefon',
			'config' => array(
				'type' => 'input',
				'size' => 30,
				'eval' => 'trim'
),
),
'strassehnr' => array(
			'exclude' => 0,
			'label' => 'LLL:EXT:ifp_curriculum2/Resources/Private/Language/locallang_db.xml:tx_ifpcurriculum2_domain_model_dozent.strassehnr',
			'config' => array(
				'type' => 'input',
				'size' => 50,
				'eval' => 'trim'
),
),
'plz' => array(
			'exclude' => 0,
			'label' => 'LLL:EXT:ifp_curriculum2/Resources/Private/Language/locallang_db.xml:tx_ifpcurriculum2_domain_model_dozent.plz',
			'config' => array(
				'type' => 'input',
				'size' => 30,
				'eval' => 'trim'
),
),
		'stadt' => array(
			'exclude' => 0,
			'label' => 'Stadt',
			'config' => array(
				'type' => 'input',
				'size' => 30,
				'eval' => 'trim'
			),
		),
		'extern' => array(
			'exclude' => 0,
			'label' => 'LLL:EXT:ifp_curriculum2/Resources/Private/Language/locallang_db.xml:tx_ifpcurriculum2_domain_model_dozent.extern',
			'config' => array(
				'type' => 'check',
				'default' => 0
			),
		),
	),
);
?>